//学习课件
import course from "@/views/course";
export default {
  path: "/courseware",
  name: "courseware",
  component: course,
  redirect: { name: "courseware-index" },
  children: ((pre) => [
    // 首页
    { path: "index", name: `${pre}index`, component: () => import("@/views/courseware/index") },
    {
      path: "course",
      name: `${pre}courseWareDetail`,
      component: () => import("@/views/courseware/components/courseWareDetail"),
    },
    { path: "video", name: `${pre}video`, component: () => import("@/views/courseware/components/video") },
    { path: "search", name: `${pre}search`, component: () => import("@/views/courseware/components/courseSearch") }
  ])("courseware-"),

};
